package io.sage.modules.enterwarehouse.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import io.sage.modules.enterwarehouse.entity.BReturnRecords;
import io.sage.modules.enterwarehouse.entity.BReturnRecordsExample;
import org.springframework.stereotype.Repository;

@Repository
public interface BReturnRecordsMapper {
    int countByExample(BReturnRecordsExample example);

    int deleteByExample(BReturnRecordsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BReturnRecords record);

    int insertSelective(BReturnRecords record);

    List<BReturnRecords> selectByExample(BReturnRecordsExample example);

    BReturnRecords selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BReturnRecords record, @Param("example") BReturnRecordsExample example);

    int updateByExample(@Param("record") BReturnRecords record, @Param("example") BReturnRecordsExample example);

    int updateByPrimaryKeySelective(BReturnRecords record);

    int updateByPrimaryKey(BReturnRecords record);
    
    /**
     * 员工归还工具列表
     * @param params
     * @return
     */
    List<BReturnRecords> selectReturnRecordsList(Map<String, Object> params);
    /**
     * 批量删除
     * @param ids
     * @return
     */
	int deleteBatchIds(Integer[] ids);

    int batchInsert(Map<String, Object> param);
}